/**
 */
package org.mro.grib.model.files.secondEdition.grids.impl;

import java.nio.ByteBuffer;

import org.eclipse.emf.common.notify.Notification;

import org.eclipse.emf.ecore.EClass;

import org.eclipse.emf.ecore.impl.ENotificationImpl;

import org.mro.grib.model.files.secondEdition.grids.GridDefinitionTemplate30;
import org.mro.grib.model.files.secondEdition.grids.GridsPackage;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model object '<em><b>Grid Definition Template30</b></em>'.
 * <!-- end-user-doc -->
 * <p>
 * The following features are implemented:
 * <ul>
 *   <li>{@link org.mro.grib.model.files.secondEdition.grids.impl.GridDefinitionTemplate30Impl#getNumberOfPointsAlongAParallel <em>Number Of Points Along AParallel</em>}</li>
 *   <li>{@link org.mro.grib.model.files.secondEdition.grids.impl.GridDefinitionTemplate30Impl#getNumberOfPointsAlongAMeridian <em>Number Of Points Along AMeridian</em>}</li>
 *   <li>{@link org.mro.grib.model.files.secondEdition.grids.impl.GridDefinitionTemplate30Impl#getBasicAngleOfTheInitialProductionDomain <em>Basic Angle Of The Initial Production Domain</em>}</li>
 *   <li>{@link org.mro.grib.model.files.secondEdition.grids.impl.GridDefinitionTemplate30Impl#getSubdivisionsOfBasicAngle <em>Subdivisions Of Basic Angle</em>}</li>
 *   <li>{@link org.mro.grib.model.files.secondEdition.grids.impl.GridDefinitionTemplate30Impl#getLatitudeOfFirstGridPoint <em>Latitude Of First Grid Point</em>}</li>
 *   <li>{@link org.mro.grib.model.files.secondEdition.grids.impl.GridDefinitionTemplate30Impl#getLongitudeOfFirstGridPoint <em>Longitude Of First Grid Point</em>}</li>
 *   <li>{@link org.mro.grib.model.files.secondEdition.grids.impl.GridDefinitionTemplate30Impl#getResolutionAndComponentFlags <em>Resolution And Component Flags</em>}</li>
 *   <li>{@link org.mro.grib.model.files.secondEdition.grids.impl.GridDefinitionTemplate30Impl#getLatitudeOfLastGridPoint <em>Latitude Of Last Grid Point</em>}</li>
 *   <li>{@link org.mro.grib.model.files.secondEdition.grids.impl.GridDefinitionTemplate30Impl#getLongitudeOfLastGridPoint <em>Longitude Of Last Grid Point</em>}</li>
 *   <li>{@link org.mro.grib.model.files.secondEdition.grids.impl.GridDefinitionTemplate30Impl#getIDirectionIncrement <em>IDirection Increment</em>}</li>
 *   <li>{@link org.mro.grib.model.files.secondEdition.grids.impl.GridDefinitionTemplate30Impl#getJDirectionIncrement <em>JDirection Increment</em>}</li>
 *   <li>{@link org.mro.grib.model.files.secondEdition.grids.impl.GridDefinitionTemplate30Impl#getScanningMode <em>Scanning Mode</em>}</li>
 *   <li>{@link org.mro.grib.model.files.secondEdition.grids.impl.GridDefinitionTemplate30Impl#getListOfNumberOfPointsOffset <em>List Of Number Of Points Offset</em>}</li>
 * </ul>
 * </p>
 *
 * @generated
 */
public class GridDefinitionTemplate30Impl extends EarthShapeGridDefinitionImpl implements GridDefinitionTemplate30 {
	/**
	 * The default value of the '{@link #getNumberOfPointsAlongAParallel() <em>Number Of Points Along AParallel</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getNumberOfPointsAlongAParallel()
	 * @generated
	 * @ordered
	 */
	protected static final int NUMBER_OF_POINTS_ALONG_APARALLEL_EDEFAULT = 0;

	/**
	 * The cached value of the '{@link #getNumberOfPointsAlongAParallel() <em>Number Of Points Along AParallel</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getNumberOfPointsAlongAParallel()
	 * @generated
	 * @ordered
	 */
	protected int numberOfPointsAlongAParallel = NUMBER_OF_POINTS_ALONG_APARALLEL_EDEFAULT;

	/**
	 * The default value of the '{@link #getNumberOfPointsAlongAMeridian() <em>Number Of Points Along AMeridian</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getNumberOfPointsAlongAMeridian()
	 * @generated
	 * @ordered
	 */
	protected static final int NUMBER_OF_POINTS_ALONG_AMERIDIAN_EDEFAULT = 0;

	/**
	 * The cached value of the '{@link #getNumberOfPointsAlongAMeridian() <em>Number Of Points Along AMeridian</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getNumberOfPointsAlongAMeridian()
	 * @generated
	 * @ordered
	 */
	protected int numberOfPointsAlongAMeridian = NUMBER_OF_POINTS_ALONG_AMERIDIAN_EDEFAULT;

	/**
	 * The default value of the '{@link #getBasicAngleOfTheInitialProductionDomain() <em>Basic Angle Of The Initial Production Domain</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getBasicAngleOfTheInitialProductionDomain()
	 * @generated
	 * @ordered
	 */
	protected static final int BASIC_ANGLE_OF_THE_INITIAL_PRODUCTION_DOMAIN_EDEFAULT = 0;

	/**
	 * The cached value of the '{@link #getBasicAngleOfTheInitialProductionDomain() <em>Basic Angle Of The Initial Production Domain</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getBasicAngleOfTheInitialProductionDomain()
	 * @generated
	 * @ordered
	 */
	protected int basicAngleOfTheInitialProductionDomain = BASIC_ANGLE_OF_THE_INITIAL_PRODUCTION_DOMAIN_EDEFAULT;

	/**
	 * The default value of the '{@link #getSubdivisionsOfBasicAngle() <em>Subdivisions Of Basic Angle</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getSubdivisionsOfBasicAngle()
	 * @generated
	 * @ordered
	 */
	protected static final int SUBDIVISIONS_OF_BASIC_ANGLE_EDEFAULT = 0;

	/**
	 * The cached value of the '{@link #getSubdivisionsOfBasicAngle() <em>Subdivisions Of Basic Angle</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getSubdivisionsOfBasicAngle()
	 * @generated
	 * @ordered
	 */
	protected int subdivisionsOfBasicAngle = SUBDIVISIONS_OF_BASIC_ANGLE_EDEFAULT;

	/**
	 * The default value of the '{@link #getLatitudeOfFirstGridPoint() <em>Latitude Of First Grid Point</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getLatitudeOfFirstGridPoint()
	 * @generated
	 * @ordered
	 */
	protected static final int LATITUDE_OF_FIRST_GRID_POINT_EDEFAULT = 0;

	/**
	 * The cached value of the '{@link #getLatitudeOfFirstGridPoint() <em>Latitude Of First Grid Point</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getLatitudeOfFirstGridPoint()
	 * @generated
	 * @ordered
	 */
	protected int latitudeOfFirstGridPoint = LATITUDE_OF_FIRST_GRID_POINT_EDEFAULT;

	/**
	 * The default value of the '{@link #getLongitudeOfFirstGridPoint() <em>Longitude Of First Grid Point</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getLongitudeOfFirstGridPoint()
	 * @generated
	 * @ordered
	 */
	protected static final int LONGITUDE_OF_FIRST_GRID_POINT_EDEFAULT = 0;

	/**
	 * The cached value of the '{@link #getLongitudeOfFirstGridPoint() <em>Longitude Of First Grid Point</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getLongitudeOfFirstGridPoint()
	 * @generated
	 * @ordered
	 */
	protected int longitudeOfFirstGridPoint = LONGITUDE_OF_FIRST_GRID_POINT_EDEFAULT;

	/**
	 * The default value of the '{@link #getResolutionAndComponentFlags() <em>Resolution And Component Flags</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getResolutionAndComponentFlags()
	 * @generated
	 * @ordered
	 */
	protected static final byte RESOLUTION_AND_COMPONENT_FLAGS_EDEFAULT = 0x00;

	/**
	 * The cached value of the '{@link #getResolutionAndComponentFlags() <em>Resolution And Component Flags</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getResolutionAndComponentFlags()
	 * @generated
	 * @ordered
	 */
	protected byte resolutionAndComponentFlags = RESOLUTION_AND_COMPONENT_FLAGS_EDEFAULT;

	/**
	 * The default value of the '{@link #getLatitudeOfLastGridPoint() <em>Latitude Of Last Grid Point</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getLatitudeOfLastGridPoint()
	 * @generated
	 * @ordered
	 */
	protected static final int LATITUDE_OF_LAST_GRID_POINT_EDEFAULT = 0;

	/**
	 * The cached value of the '{@link #getLatitudeOfLastGridPoint() <em>Latitude Of Last Grid Point</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getLatitudeOfLastGridPoint()
	 * @generated
	 * @ordered
	 */
	protected int latitudeOfLastGridPoint = LATITUDE_OF_LAST_GRID_POINT_EDEFAULT;

	/**
	 * The default value of the '{@link #getLongitudeOfLastGridPoint() <em>Longitude Of Last Grid Point</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getLongitudeOfLastGridPoint()
	 * @generated
	 * @ordered
	 */
	protected static final int LONGITUDE_OF_LAST_GRID_POINT_EDEFAULT = 0;

	/**
	 * The cached value of the '{@link #getLongitudeOfLastGridPoint() <em>Longitude Of Last Grid Point</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getLongitudeOfLastGridPoint()
	 * @generated
	 * @ordered
	 */
	protected int longitudeOfLastGridPoint = LONGITUDE_OF_LAST_GRID_POINT_EDEFAULT;

	/**
	 * The default value of the '{@link #getIDirectionIncrement() <em>IDirection Increment</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getIDirectionIncrement()
	 * @generated
	 * @ordered
	 */
	protected static final int IDIRECTION_INCREMENT_EDEFAULT = 0;

	/**
	 * The cached value of the '{@link #getIDirectionIncrement() <em>IDirection Increment</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getIDirectionIncrement()
	 * @generated
	 * @ordered
	 */
	protected int iDirectionIncrement = IDIRECTION_INCREMENT_EDEFAULT;

	/**
	 * The default value of the '{@link #getJDirectionIncrement() <em>JDirection Increment</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getJDirectionIncrement()
	 * @generated
	 * @ordered
	 */
	protected static final int JDIRECTION_INCREMENT_EDEFAULT = 0;

	/**
	 * The cached value of the '{@link #getJDirectionIncrement() <em>JDirection Increment</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getJDirectionIncrement()
	 * @generated
	 * @ordered
	 */
	protected int jDirectionIncrement = JDIRECTION_INCREMENT_EDEFAULT;

	/**
	 * The default value of the '{@link #getScanningMode() <em>Scanning Mode</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getScanningMode()
	 * @generated
	 * @ordered
	 */
	protected static final byte SCANNING_MODE_EDEFAULT = 0x00;

	/**
	 * The cached value of the '{@link #getScanningMode() <em>Scanning Mode</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getScanningMode()
	 * @generated
	 * @ordered
	 */
	protected byte scanningMode = SCANNING_MODE_EDEFAULT;

	/**
	 * The default value of the '{@link #getListOfNumberOfPointsOffset() <em>List Of Number Of Points Offset</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getListOfNumberOfPointsOffset()
	 * @generated
	 * @ordered
	 */
	protected static final long LIST_OF_NUMBER_OF_POINTS_OFFSET_EDEFAULT = 0L;

	/**
	 * The cached value of the '{@link #getListOfNumberOfPointsOffset() <em>List Of Number Of Points Offset</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getListOfNumberOfPointsOffset()
	 * @generated
	 * @ordered
	 */
	protected long listOfNumberOfPointsOffset = LIST_OF_NUMBER_OF_POINTS_OFFSET_EDEFAULT;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected GridDefinitionTemplate30Impl() {
		super();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	protected EClass eStaticClass() {
		return GridsPackage.Literals.GRID_DEFINITION_TEMPLATE30;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getNumberOfPointsAlongAParallel() {
		return numberOfPointsAlongAParallel;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setNumberOfPointsAlongAParallel(int newNumberOfPointsAlongAParallel) {
		int oldNumberOfPointsAlongAParallel = numberOfPointsAlongAParallel;
		numberOfPointsAlongAParallel = newNumberOfPointsAlongAParallel;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, GridsPackage.GRID_DEFINITION_TEMPLATE30__NUMBER_OF_POINTS_ALONG_APARALLEL, oldNumberOfPointsAlongAParallel, numberOfPointsAlongAParallel));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getNumberOfPointsAlongAMeridian() {
		return numberOfPointsAlongAMeridian;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setNumberOfPointsAlongAMeridian(int newNumberOfPointsAlongAMeridian) {
		int oldNumberOfPointsAlongAMeridian = numberOfPointsAlongAMeridian;
		numberOfPointsAlongAMeridian = newNumberOfPointsAlongAMeridian;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, GridsPackage.GRID_DEFINITION_TEMPLATE30__NUMBER_OF_POINTS_ALONG_AMERIDIAN, oldNumberOfPointsAlongAMeridian, numberOfPointsAlongAMeridian));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getBasicAngleOfTheInitialProductionDomain() {
		return basicAngleOfTheInitialProductionDomain;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setBasicAngleOfTheInitialProductionDomain(int newBasicAngleOfTheInitialProductionDomain) {
		int oldBasicAngleOfTheInitialProductionDomain = basicAngleOfTheInitialProductionDomain;
		basicAngleOfTheInitialProductionDomain = newBasicAngleOfTheInitialProductionDomain;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, GridsPackage.GRID_DEFINITION_TEMPLATE30__BASIC_ANGLE_OF_THE_INITIAL_PRODUCTION_DOMAIN, oldBasicAngleOfTheInitialProductionDomain, basicAngleOfTheInitialProductionDomain));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getSubdivisionsOfBasicAngle() {
		return subdivisionsOfBasicAngle;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setSubdivisionsOfBasicAngle(int newSubdivisionsOfBasicAngle) {
		int oldSubdivisionsOfBasicAngle = subdivisionsOfBasicAngle;
		subdivisionsOfBasicAngle = newSubdivisionsOfBasicAngle;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, GridsPackage.GRID_DEFINITION_TEMPLATE30__SUBDIVISIONS_OF_BASIC_ANGLE, oldSubdivisionsOfBasicAngle, subdivisionsOfBasicAngle));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getLatitudeOfFirstGridPoint() {
		return latitudeOfFirstGridPoint;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setLatitudeOfFirstGridPoint(int newLatitudeOfFirstGridPoint) {
		int oldLatitudeOfFirstGridPoint = latitudeOfFirstGridPoint;
		latitudeOfFirstGridPoint = newLatitudeOfFirstGridPoint;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, GridsPackage.GRID_DEFINITION_TEMPLATE30__LATITUDE_OF_FIRST_GRID_POINT, oldLatitudeOfFirstGridPoint, latitudeOfFirstGridPoint));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getLongitudeOfFirstGridPoint() {
		return longitudeOfFirstGridPoint;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setLongitudeOfFirstGridPoint(int newLongitudeOfFirstGridPoint) {
		int oldLongitudeOfFirstGridPoint = longitudeOfFirstGridPoint;
		longitudeOfFirstGridPoint = newLongitudeOfFirstGridPoint;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, GridsPackage.GRID_DEFINITION_TEMPLATE30__LONGITUDE_OF_FIRST_GRID_POINT, oldLongitudeOfFirstGridPoint, longitudeOfFirstGridPoint));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public byte getResolutionAndComponentFlags() {
		return resolutionAndComponentFlags;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setResolutionAndComponentFlags(byte newResolutionAndComponentFlags) {
		byte oldResolutionAndComponentFlags = resolutionAndComponentFlags;
		resolutionAndComponentFlags = newResolutionAndComponentFlags;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, GridsPackage.GRID_DEFINITION_TEMPLATE30__RESOLUTION_AND_COMPONENT_FLAGS, oldResolutionAndComponentFlags, resolutionAndComponentFlags));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getLatitudeOfLastGridPoint() {
		return latitudeOfLastGridPoint;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setLatitudeOfLastGridPoint(int newLatitudeOfLastGridPoint) {
		int oldLatitudeOfLastGridPoint = latitudeOfLastGridPoint;
		latitudeOfLastGridPoint = newLatitudeOfLastGridPoint;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, GridsPackage.GRID_DEFINITION_TEMPLATE30__LATITUDE_OF_LAST_GRID_POINT, oldLatitudeOfLastGridPoint, latitudeOfLastGridPoint));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getLongitudeOfLastGridPoint() {
		return longitudeOfLastGridPoint;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setLongitudeOfLastGridPoint(int newLongitudeOfLastGridPoint) {
		int oldLongitudeOfLastGridPoint = longitudeOfLastGridPoint;
		longitudeOfLastGridPoint = newLongitudeOfLastGridPoint;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, GridsPackage.GRID_DEFINITION_TEMPLATE30__LONGITUDE_OF_LAST_GRID_POINT, oldLongitudeOfLastGridPoint, longitudeOfLastGridPoint));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getIDirectionIncrement() {
		return iDirectionIncrement;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setIDirectionIncrement(int newIDirectionIncrement) {
		int oldIDirectionIncrement = iDirectionIncrement;
		iDirectionIncrement = newIDirectionIncrement;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, GridsPackage.GRID_DEFINITION_TEMPLATE30__IDIRECTION_INCREMENT, oldIDirectionIncrement, iDirectionIncrement));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getJDirectionIncrement() {
		return jDirectionIncrement;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setJDirectionIncrement(int newJDirectionIncrement) {
		int oldJDirectionIncrement = jDirectionIncrement;
		jDirectionIncrement = newJDirectionIncrement;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, GridsPackage.GRID_DEFINITION_TEMPLATE30__JDIRECTION_INCREMENT, oldJDirectionIncrement, jDirectionIncrement));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public byte getScanningMode() {
		return scanningMode;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setScanningMode(byte newScanningMode) {
		byte oldScanningMode = scanningMode;
		scanningMode = newScanningMode;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, GridsPackage.GRID_DEFINITION_TEMPLATE30__SCANNING_MODE, oldScanningMode, scanningMode));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public long getListOfNumberOfPointsOffset() {
		return listOfNumberOfPointsOffset;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setListOfNumberOfPointsOffset(long newListOfNumberOfPointsOffset) {
		long oldListOfNumberOfPointsOffset = listOfNumberOfPointsOffset;
		listOfNumberOfPointsOffset = newListOfNumberOfPointsOffset;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, GridsPackage.GRID_DEFINITION_TEMPLATE30__LIST_OF_NUMBER_OF_POINTS_OFFSET, oldListOfNumberOfPointsOffset, listOfNumberOfPointsOffset));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Object eGet(int featureID, boolean resolve, boolean coreType) {
		switch (featureID) {
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__NUMBER_OF_POINTS_ALONG_APARALLEL:
				return getNumberOfPointsAlongAParallel();
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__NUMBER_OF_POINTS_ALONG_AMERIDIAN:
				return getNumberOfPointsAlongAMeridian();
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__BASIC_ANGLE_OF_THE_INITIAL_PRODUCTION_DOMAIN:
				return getBasicAngleOfTheInitialProductionDomain();
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__SUBDIVISIONS_OF_BASIC_ANGLE:
				return getSubdivisionsOfBasicAngle();
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__LATITUDE_OF_FIRST_GRID_POINT:
				return getLatitudeOfFirstGridPoint();
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__LONGITUDE_OF_FIRST_GRID_POINT:
				return getLongitudeOfFirstGridPoint();
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__RESOLUTION_AND_COMPONENT_FLAGS:
				return getResolutionAndComponentFlags();
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__LATITUDE_OF_LAST_GRID_POINT:
				return getLatitudeOfLastGridPoint();
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__LONGITUDE_OF_LAST_GRID_POINT:
				return getLongitudeOfLastGridPoint();
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__IDIRECTION_INCREMENT:
				return getIDirectionIncrement();
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__JDIRECTION_INCREMENT:
				return getJDirectionIncrement();
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__SCANNING_MODE:
				return getScanningMode();
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__LIST_OF_NUMBER_OF_POINTS_OFFSET:
				return getListOfNumberOfPointsOffset();
		}
		return super.eGet(featureID, resolve, coreType);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public void eSet(int featureID, Object newValue) {
		switch (featureID) {
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__NUMBER_OF_POINTS_ALONG_APARALLEL:
				setNumberOfPointsAlongAParallel((Integer)newValue);
				return;
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__NUMBER_OF_POINTS_ALONG_AMERIDIAN:
				setNumberOfPointsAlongAMeridian((Integer)newValue);
				return;
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__BASIC_ANGLE_OF_THE_INITIAL_PRODUCTION_DOMAIN:
				setBasicAngleOfTheInitialProductionDomain((Integer)newValue);
				return;
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__SUBDIVISIONS_OF_BASIC_ANGLE:
				setSubdivisionsOfBasicAngle((Integer)newValue);
				return;
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__LATITUDE_OF_FIRST_GRID_POINT:
				setLatitudeOfFirstGridPoint((Integer)newValue);
				return;
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__LONGITUDE_OF_FIRST_GRID_POINT:
				setLongitudeOfFirstGridPoint((Integer)newValue);
				return;
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__RESOLUTION_AND_COMPONENT_FLAGS:
				setResolutionAndComponentFlags((Byte)newValue);
				return;
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__LATITUDE_OF_LAST_GRID_POINT:
				setLatitudeOfLastGridPoint((Integer)newValue);
				return;
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__LONGITUDE_OF_LAST_GRID_POINT:
				setLongitudeOfLastGridPoint((Integer)newValue);
				return;
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__IDIRECTION_INCREMENT:
				setIDirectionIncrement((Integer)newValue);
				return;
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__JDIRECTION_INCREMENT:
				setJDirectionIncrement((Integer)newValue);
				return;
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__SCANNING_MODE:
				setScanningMode((Byte)newValue);
				return;
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__LIST_OF_NUMBER_OF_POINTS_OFFSET:
				setListOfNumberOfPointsOffset((Long)newValue);
				return;
		}
		super.eSet(featureID, newValue);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public void eUnset(int featureID) {
		switch (featureID) {
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__NUMBER_OF_POINTS_ALONG_APARALLEL:
				setNumberOfPointsAlongAParallel(NUMBER_OF_POINTS_ALONG_APARALLEL_EDEFAULT);
				return;
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__NUMBER_OF_POINTS_ALONG_AMERIDIAN:
				setNumberOfPointsAlongAMeridian(NUMBER_OF_POINTS_ALONG_AMERIDIAN_EDEFAULT);
				return;
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__BASIC_ANGLE_OF_THE_INITIAL_PRODUCTION_DOMAIN:
				setBasicAngleOfTheInitialProductionDomain(BASIC_ANGLE_OF_THE_INITIAL_PRODUCTION_DOMAIN_EDEFAULT);
				return;
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__SUBDIVISIONS_OF_BASIC_ANGLE:
				setSubdivisionsOfBasicAngle(SUBDIVISIONS_OF_BASIC_ANGLE_EDEFAULT);
				return;
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__LATITUDE_OF_FIRST_GRID_POINT:
				setLatitudeOfFirstGridPoint(LATITUDE_OF_FIRST_GRID_POINT_EDEFAULT);
				return;
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__LONGITUDE_OF_FIRST_GRID_POINT:
				setLongitudeOfFirstGridPoint(LONGITUDE_OF_FIRST_GRID_POINT_EDEFAULT);
				return;
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__RESOLUTION_AND_COMPONENT_FLAGS:
				setResolutionAndComponentFlags(RESOLUTION_AND_COMPONENT_FLAGS_EDEFAULT);
				return;
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__LATITUDE_OF_LAST_GRID_POINT:
				setLatitudeOfLastGridPoint(LATITUDE_OF_LAST_GRID_POINT_EDEFAULT);
				return;
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__LONGITUDE_OF_LAST_GRID_POINT:
				setLongitudeOfLastGridPoint(LONGITUDE_OF_LAST_GRID_POINT_EDEFAULT);
				return;
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__IDIRECTION_INCREMENT:
				setIDirectionIncrement(IDIRECTION_INCREMENT_EDEFAULT);
				return;
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__JDIRECTION_INCREMENT:
				setJDirectionIncrement(JDIRECTION_INCREMENT_EDEFAULT);
				return;
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__SCANNING_MODE:
				setScanningMode(SCANNING_MODE_EDEFAULT);
				return;
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__LIST_OF_NUMBER_OF_POINTS_OFFSET:
				setListOfNumberOfPointsOffset(LIST_OF_NUMBER_OF_POINTS_OFFSET_EDEFAULT);
				return;
		}
		super.eUnset(featureID);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public boolean eIsSet(int featureID) {
		switch (featureID) {
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__NUMBER_OF_POINTS_ALONG_APARALLEL:
				return numberOfPointsAlongAParallel != NUMBER_OF_POINTS_ALONG_APARALLEL_EDEFAULT;
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__NUMBER_OF_POINTS_ALONG_AMERIDIAN:
				return numberOfPointsAlongAMeridian != NUMBER_OF_POINTS_ALONG_AMERIDIAN_EDEFAULT;
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__BASIC_ANGLE_OF_THE_INITIAL_PRODUCTION_DOMAIN:
				return basicAngleOfTheInitialProductionDomain != BASIC_ANGLE_OF_THE_INITIAL_PRODUCTION_DOMAIN_EDEFAULT;
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__SUBDIVISIONS_OF_BASIC_ANGLE:
				return subdivisionsOfBasicAngle != SUBDIVISIONS_OF_BASIC_ANGLE_EDEFAULT;
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__LATITUDE_OF_FIRST_GRID_POINT:
				return latitudeOfFirstGridPoint != LATITUDE_OF_FIRST_GRID_POINT_EDEFAULT;
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__LONGITUDE_OF_FIRST_GRID_POINT:
				return longitudeOfFirstGridPoint != LONGITUDE_OF_FIRST_GRID_POINT_EDEFAULT;
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__RESOLUTION_AND_COMPONENT_FLAGS:
				return resolutionAndComponentFlags != RESOLUTION_AND_COMPONENT_FLAGS_EDEFAULT;
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__LATITUDE_OF_LAST_GRID_POINT:
				return latitudeOfLastGridPoint != LATITUDE_OF_LAST_GRID_POINT_EDEFAULT;
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__LONGITUDE_OF_LAST_GRID_POINT:
				return longitudeOfLastGridPoint != LONGITUDE_OF_LAST_GRID_POINT_EDEFAULT;
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__IDIRECTION_INCREMENT:
				return iDirectionIncrement != IDIRECTION_INCREMENT_EDEFAULT;
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__JDIRECTION_INCREMENT:
				return jDirectionIncrement != JDIRECTION_INCREMENT_EDEFAULT;
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__SCANNING_MODE:
				return scanningMode != SCANNING_MODE_EDEFAULT;
			case GridsPackage.GRID_DEFINITION_TEMPLATE30__LIST_OF_NUMBER_OF_POINTS_OFFSET:
				return listOfNumberOfPointsOffset != LIST_OF_NUMBER_OF_POINTS_OFFSET_EDEFAULT;
		}
		return super.eIsSet(featureID);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		if (eIsProxy()) return super.toString();

		StringBuffer result = new StringBuffer(super.toString());
		result.append(" (numberOfPointsAlongAParallel: "); //$NON-NLS-1$
		result.append(numberOfPointsAlongAParallel);
		result.append(", numberOfPointsAlongAMeridian: "); //$NON-NLS-1$
		result.append(numberOfPointsAlongAMeridian);
		result.append(", basicAngleOfTheInitialProductionDomain: "); //$NON-NLS-1$
		result.append(basicAngleOfTheInitialProductionDomain);
		result.append(", subdivisionsOfBasicAngle: "); //$NON-NLS-1$
		result.append(subdivisionsOfBasicAngle);
		result.append(", latitudeOfFirstGridPoint: "); //$NON-NLS-1$
		result.append(latitudeOfFirstGridPoint);
		result.append(", longitudeOfFirstGridPoint: "); //$NON-NLS-1$
		result.append(longitudeOfFirstGridPoint);
		result.append(", resolutionAndComponentFlags: "); //$NON-NLS-1$
		result.append(resolutionAndComponentFlags);
		result.append(", latitudeOfLastGridPoint: "); //$NON-NLS-1$
		result.append(latitudeOfLastGridPoint);
		result.append(", longitudeOfLastGridPoint: "); //$NON-NLS-1$
		result.append(longitudeOfLastGridPoint);
		result.append(", iDirectionIncrement: "); //$NON-NLS-1$
		result.append(iDirectionIncrement);
		result.append(", jDirectionIncrement: "); //$NON-NLS-1$
		result.append(jDirectionIncrement);
		result.append(", scanningMode: "); //$NON-NLS-1$
		result.append(scanningMode);
		result.append(", listOfNumberOfPointsOffset: "); //$NON-NLS-1$
		result.append(listOfNumberOfPointsOffset);
		result.append(')');
		return result.toString();
	}

	/* (non-Javadoc)
	 * @see org.mro.grib.model.files.secondEdition.grids.impl.EarthShapeGridDefinitionImpl#initialise(java.nio.ByteBuffer)
	 */
	@Override
	public void initialise(ByteBuffer buffer) {
		super.initialise(buffer);
		numberOfPointsAlongAParallel = buffer.getInt();
		numberOfPointsAlongAMeridian = buffer.getInt();
		basicAngleOfTheInitialProductionDomain = buffer.getInt();
		subdivisionsOfBasicAngle = buffer.getInt();
		latitudeOfFirstGridPoint = buffer.getInt();
		longitudeOfFirstGridPoint = buffer.getInt();
		resolutionAndComponentFlags = buffer.get();
		latitudeOfLastGridPoint = buffer.getInt();
		longitudeOfLastGridPoint = buffer.getInt();
		iDirectionIncrement = buffer.getInt();
		jDirectionIncrement = buffer.getInt();
		scanningMode = buffer.get();
		listOfNumberOfPointsOffset = buffer.position();
	}

	
} //GridDefinitionTemplate30Impl
